<interface type='<%= @type %>'>
  <% if @mac %>
  <mac address='<%= @mac %>'/>
  <% end %>
  <source address='<%=@tunnel_ip%>' port='<%= @tunnel_port %>'>
  <% if @type == 'udp' %>
    <local address='<%=@udp_tunnel_local_ip%>' port='<%=@udp_tunnel_local_port%>' />
  <% end %>
  </source>
  <% if @device_name %>
    <target dev='<%= @device_name %>'/>
  <% else %>
    <target dev='tnet<%= @iface_number %>'/>
  <% end %>
  <alias name='net<%= @iface_number %>'/>
  <model type='<%=@model_type%>'/>
</interface>
